package com.lmk.ms.common.constants;

/**
 * Redis缓存KEY
 *
 * @author laomake@hotmail.com
 * @version 1.0
 * @date 2021/09/13
 */
public class MsCacheKey {

    /**
     * 通用前缀
     */
    private static final String PREFIX = "ms:";

    /**
     * JWT缓存KEY
     */
    public static final String KEY_JWT_TOKEN = PREFIX + "jwt:token:";

    /**
     * JWT缓存KEY
     */
    public static final String KEY_JWT_USER = PREFIX + "jwt:user:";

    /**
     * 用户角色缓存KEY
     */
    public static final String KEY_USER_ROLE = PREFIX + "user:role:";

    /**
     * 用户权限缓存KEY
     */
    public static final String KEY_USER_PERMISSION = PREFIX + "user:permission:";

    /**
     * 微信访问令牌的缓存KEY
     */
    public static final String WX_AK = PREFIX + "wx:ak:";

    /**
     * 微信JS Ticket的缓存KEY
     */
    public static final String WX_JS_TICKET = PREFIX + "wx:js:";

    /**
     * 微信用户授权访问令牌的缓存KEY
     */
    public static final String WX_OAUTH_AK = PREFIX + "wx:oauth:ak:";

    /**
     * 微信用户授权刷新令牌的缓存KEY
     */
    public static final String WX_OAUTH_RK = PREFIX + "wx:oauth:rk:";

    /**
     * 微信用户信息的缓存KEY
     */
    public static final String WX_OAUTH_USER = PREFIX + "wx:oauth:user:";

    /**
     * 微信扫码登录
     */
    public static final String WX_QR_LOGIN = PREFIX + "wx:qr:";

    /**
     * QQ访问令牌的缓存KEY
     */
    public static final String QQ_AK = PREFIX + "qq:ak:";
}
